import 'package:taonile/generated/json/base/json_field.dart';
import 'package:taonile/generated/json/stock_lines_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class StockLinesEntity {

	late int code;
	late String msg;
	late List<StockLinesData> data;
  
  StockLinesEntity();

  factory StockLinesEntity.fromJson(Map<String, dynamic> json) => $StockLinesEntityFromJson(json);

  Map<String, dynamic> toJson() => $StockLinesEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class StockLinesData {

	late String data;
	late String price;
  
  StockLinesData();

  factory StockLinesData.fromJson(Map<String, dynamic> json) => $StockLinesDataFromJson(json);

  Map<String, dynamic> toJson() => $StockLinesDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}